package com.cjj.mybatis.injector.enums;

import lombok.Getter;

/**
 * @Date 2021/11/03 11:54:56
 * @Created by BrownC_
 * @email ccc-ju@outlook.com
 */
@Getter
public enum MySqlMethod {

    /**
     * REPLACE INTO
     */
    REPLACE_INTO("replaceInto", "replace into", "<script>\nREPLACE INTO %s %s VALUES %s\n</script>"),
    REPLACE_INTO_BY_MAP("replaceIntoByMap", "replace into by map", "<script>\nREPLACE INTO %s %s VALUES %s\n</script>"),
    ;
    private final String method;
    private final String desc;
    private final String sql;

    MySqlMethod(String method, String desc, String sql) {
        this.method = method;
        this.desc = desc;
        this.sql = sql;
    }

}
